package cevent.source.cloudcenter.server.dto;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;


/**
 * @author cevent
 * @description 短信管理表 模块传输层
 */
public class ShortMessageDto {

        //短信ID
        private String uniId;
        //手机号
        private String mobile;
        //验证码
        private String code;
        //会员名
        private String name;
        //发送内容
        private String content;
        //用途|枚举[ShortMessageUseEnum]：REGISTER("R", "注册"), FORGET("F", "忘记密码"), SERVICE("S","业务发送")
        private String use;
        //状态|枚举[ShortMessageStatusEnum]：USED("U", "已使用"), NOT_USED("N", "未使用")
        private String status;
        //生效时间
            @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        private Date times;

        public String getUniId(){
            return  uniId;
        }
        public void setUniId(String uniId){
            this.uniId=uniId;
        }
        public String getMobile(){
            return  mobile;
        }
        public void setMobile(String mobile){
            this.mobile=mobile;
        }
        public String getCode(){
            return  code;
        }
        public void setCode(String code){
            this.code=code;
        }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent(){
            return  content;
        }
        public void setContent(String content){
            this.content=content;
        }
        public String getUse(){
            return  use;
        }
        public void setUse(String use){
            this.use=use;
        }
        public String getStatus(){
            return  status;
        }
        public void setStatus(String status){
            this.status=status;
        }
        public Date getTimes(){
            return  times;
        }
        public void setTimes(Date times){
            this.times=times;
        }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ShortMessageDto{");
        sb.append("uniId='").append(uniId).append('\'');
        sb.append(", mobile='").append(mobile).append('\'');
        sb.append(", code='").append(code).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", content='").append(content).append('\'');
        sb.append(", use='").append(use).append('\'');
        sb.append(", status='").append(status).append('\'');
        sb.append(", times=").append(times);
        sb.append('}');
        return sb.toString();
    }
}
